package com.sixmac.utils;

import java.util.Calendar;

/**
 * Created by wangbin on 2014/12/6.
 */
public class UploadUtil {

    private static final String TYPE_IMAGES = "images";
    private static final String TYPE_VIDEOS = "videos";
    private static final String TYPE_CODE_IMAGES = "code_images";
    private static final String TYPE_SPREAD_CODE_IMAGES = "spread_code_images";
    private static final String HOUSE_CONTRACT_FILES = "contract";

    public static String getImagesUpladPath() {
        Calendar now = Calendar.getInstance();
        int year = now.get(Calendar.YEAR);
        int month = now.get(Calendar.MONTH) + 1;
        String uploadFilePath = TYPE_IMAGES + "/" + year + "/" + month + "/";
        return uploadFilePath;
    }

    public static String getVideosUpladPath() {
        Calendar now = Calendar.getInstance();
        int year = now.get(Calendar.YEAR);
        int month = now.get(Calendar.MONTH) + 1;
        String uploadFilePath = TYPE_VIDEOS + "/" + year + "/" + month + "/";
        return uploadFilePath;
    }

    public static String getImageCodeUpladPath() {
//        Calendar now = Calendar.getInstance();
//        int year = now.get(Calendar.YEAR);
//        int month = now.get(Calendar.MONTH) + 1;
        String uploadFilePath = TYPE_CODE_IMAGES + "/";
        return uploadFilePath;
    }

    public static String getSpreadCodeUpladPath() {
//        Calendar now = Calendar.getInstance();
//        int year = now.get(Calendar.YEAR);
//        int month = now.get(Calendar.MONTH) + 1;
        String uploadFilePath = TYPE_SPREAD_CODE_IMAGES + "/";
        return uploadFilePath;
    }
    public static String getHouseContractUpladPath() {
//        Calendar now = Calendar.getInstance();
//        int year = now.get(Calendar.YEAR);
//        int month = now.get(Calendar.MONTH) + 1;
        String uploadFilePath = HOUSE_CONTRACT_FILES + "/";
        return uploadFilePath;
    }
}
